/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/cat.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __07A604DA_33DD_47FA_8C8D_41916D42D98D__
#define __07A604DA_33DD_47FA_8C8D_41916D42D98D__

namespace http
{
    class i_cookie : public xos::i_release
    {
    protected:
        virtual ~i_cookie(){}

    public:
        virtual const char * comment( const char * lpszComment ) = 0;
        virtual const char * domain( const char * lpszDomain ) = 0;
        virtual const char * value( const char * lpszValue ) = 0;
        virtual const char * name( const char * lpszName ) = 0;
        virtual const char * path( const char * lpszPath ) = 0;

        virtual bool http_only( bool bHttp, bool bSet ) = 0;
        virtual bool secure( bool bSecure, bool bSet ) = 0;
        virtual int version( int nVer, bool bSet ) = 0;
        virtual int age( int nAge, bool bSet ) = 0;

    };

} // http

#endif // __07A604DA_33DD_47FA_8C8D_41916D42D98D__
